package cn.hackcloud.mutithread.mutilthread.waitnotify;

import java.util.ArrayList;
import java.util.List;

public class MyList {
	private static List<String> list = new ArrayList<String>();

	public static void add() {
		list.add("anyString");
	}

	public static int size() {
		return list.size();
	}

	public static void main(String[] args) {
		Object object = new Object();
		ThreadA threadA = new ThreadA(object);
		threadA.start();
		ThreadB threadB = new ThreadB(object);
		threadB.start();
	}
}
